<?php /* Smarty version 2.6.16, created on 2009-04-16 06:19:42
         compiled from Favorites.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'Favorites.html', 3, false),array('function', 'language', 'Favorites.html', 3, false),array('function', 'messages', 'Favorites.html', 16, false),array('function', 'module', 'Favorites.html', 25, false),array('function', 'str_replace', 'Favorites.html', 29, false),)), $this); ?>
<?php if ($this->_tpl_vars['bSimpleView'] && $this->_tpl_vars['bIsOwner']): ?>
    <div style="text-align:right;padding-bottom:4px;">
        <a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.account.favorites'), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'edit_favorites'), $this);?>
 ]</a>
    </div>
<?php endif; ?>
<table width="100%" cellpadding="4" cellspacing="0">
<tr>
	<td class="border2">
		<table style="width: 100%;" class="mainmenu5" cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="7"><img src="design/pic/spacer.gif" class="sqr1" alt="" height="7" width="7" /></td>
				<td class="block_header"><?php echo smarty_function_language(array('text' => 'favorite_people'), $this);?>
</td>
			</tr>
		</table>

<?php echo smarty_function_messages(array('block' => 'Favorites'), $this);?>

<?php if ('added' == $this->_tpl_vars['sPerformed']): ?>
    <?php if ($this->_tpl_vars['bSuccess']): ?>
    <div style="font-size:9pt;padding:20px;" class="color">
    <table cellpadding="10">
    <tr>
        <td>

        <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aTargAcc']['user']), $this);?>
">
            <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['aTargAcc']['user'],'iSize' => 75,'class' => 'pic1','onmouseover' => "showInfo5('".($this->_tpl_vars['aTargAcc']['user'])."', '', '');this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

        </a>

        </td><td class="color">
        <a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aTargAcc']['user']), $this);?>
"><?php echo smarty_function_str_replace(array('text' => "`you_have_just_added_atarg`",'aTargAcc_user' => ($this->_tpl_vars['aTargAcc']['user'])), $this);?>
</a>

            <div class="list"><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.account.favorites'), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'view_list'), $this);?>
 ]</a></div>
            <div class="list"><?php echo smarty_function_language(array('text' => 'back_to'), $this);?>
 <a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aTargAcc']['user']), $this);?>
"><?php echo $this->_tpl_vars['aTargAcc']['user']; ?>
</a></div>
         <?php echo smarty_function_language(array('text' => 'profile'), $this);?>


        </td></tr></table>
        </div>
    <?php else: ?>
        <div style="padding:20px;" class="color">
          <a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aTargAcc']['user']), $this);?>
"><?php echo smarty_function_str_replace(array('text' => "`sorry_you_already_have_at`",'aTargAcc_user' => ($this->_tpl_vars['aTargAcc']['user'])), $this);?>
</a>
        <br /><br />
        </div>
    <?php endif;  elseif ('deleted' == $this->_tpl_vars['sPerformed']): ?>
    <?php if ($this->_tpl_vars['bSuccess']): ?>
        <div style="font-size:9pt;padding:20px;" class="color">
        <table cellpadding="10">
        <tr>
        <td>

        <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aTargAcc']['user']), $this);?>
">
        <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['aTargAcc']['user'],'iSize' => 75,'class' => 'pic1','onmouseover' => "showInfo5('".($this->_tpl_vars['aTargAcc']['user'])."', '', '');this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

        </a>

        </td><td class="color">
            <a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aTargAcc']['user']), $this);?>
"><?php echo smarty_function_str_replace(array('text' => "`you_have_just_deleted_ata`",'aTargAcc_user' => ($this->_tpl_vars['aTargAcc']['user'])), $this);?>
</a>
        	<ul>

        	<li><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.account.favorites'), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'back_to_list_467'), $this);?>
 ]</a></li>
        	</ul>
        </td></tr>
        </table>

        </div>
    <?php else: ?>
        <div style="font-size:9pt;padding:20px;" class="color">
        <?php echo smarty_function_language(array('text' => 'no_such_member'), $this);?>

        <br /><br />
        </div>
    <?php endif;  elseif ($this->_tpl_vars['aFavorites']): ?>

<?php echo smarty_function_language(array('text' => 'global_pager','fromRow' => $this->_tpl_vars['aPaging']['fromRow'],'toRow' => $this->_tpl_vars['aPaging']['toRow'],'totalRows' => $this->_tpl_vars['aPaging']['totalRows']), $this);?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<table style="width:100%;" cellpadding="5" cellspacing="0">
    <tr class="border13">
    <?php $_from = $this->_tpl_vars['aFavorites']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['favorites'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['favorites']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['aFavorite']):
        $this->_foreach['favorites']['iteration']++;
?>
        <td style="text-align:center;vertical-align:middle;">
        <table style="margin-left:auto;margin-right:auto;">
            <tr>
                <td style="font-size:8pt;" class="color">
                    <div><b><a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aFavorite']['user']), $this);?>
"> <?php echo $this->_tpl_vars['aFavorite']['user']; ?>
</a> </b></div>

                    <a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aFavorite']['user']), $this);?>
">
                        <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['aFavorite']['user'],'iSize' => 75,'class' => 'pic1','onmouseover' => "this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

                    </a>
                    <?php if ($this->_tpl_vars['bIsOwner']): ?>
                    <div>                    
                    <a class="link_description" href="<?php echo smarty_function_url(array('link' => 'public.account.favorites','userdelete' => $this->_tpl_vars['aFavorite']['id']), $this);?>
" onclick="return sure();">
                    <?php echo smarty_function_language(array('text' => 'delete'), $this);?>

                    </a>
                    </div>
                    <?php endif; ?>
                </td>
            </tr>
        </table>
        </td>
        <?php if ($this->_foreach['favorites']['iteration'] % $this->_tpl_vars['iRowSize'] == 0): ?>
        </tr>
        <tr class="<?php if (( $this->_foreach['favorites']['iteration']/$this->_tpl_vars['iRowSize'] ) % 2 == 0): ?>border13<?php endif; ?>">
        <?php endif; ?>
    <?php endforeach; endif; unset($_from); ?>
    <?php if ($this->_foreach['favorites']['total'] % $this->_tpl_vars['iRowSize'] != 0): ?>
        <td colspan="<?php echo $this->_tpl_vars['iRowSize']; ?>
">&nbsp;</td>
    <?php endif; ?>
    </tr>
</table>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php else: ?>
    <div class="message_info"><?php echo smarty_function_language(array('text' => 'there_are_no_favorite_peo'), $this);?>
</div>
<?php endif; ?>
        </td>
	</tr>
</table>